<template>
  <div class="app">
    <div class="page" v-if="$route.path.indexOf('/sign_') === 0">
      <Nuxt />
    </div>
    <div class="page" v-else>
      <!-- 侧边栏 -->
      <page_side v-if="$store.state.user.user_id" :isCollapse="isCollapse"></page_side>
      <!-- 主体 -->
      <main>
        <!-- 页头 -->
        <page_header v-model="isCollapse" />
        <article>
          <Nuxt />
        </article>
      </main>
    </div>
  </div>
</template>


<script>
  export default {
    data() {
      return {
        isCollapse: false
      }
    },
    methods: {},
    created() {}
  }
</script>


<style>
  .content img {
    max-width: 100%;
  }
  .diy_mod .el-collapse-item__header {
    height: 2rem;
  }

  .diy_mod .el-collapse-item__content .fr {
    margin-right: 0.5rem;
  }

  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 178px !important;
  }

  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }

  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }

  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }

  .image-uploader .el-upload-dragger {
    width: 178px;
  }

  .image-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
    position: relative;
  }

  .image {
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .color {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    margin-right: 0.5rem;
    position: relative;
    top: 0.125rem;
  }

  .el-dialog {
    width: calc(100% - 1rem);
    max-width: 40rem;
  }

  .field_action {
    text-align: center;
  }

  .field_action .el-transfer {
    display: inline-block;
    text-align: left;
  }

  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  input[type=number] {

    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }

    -moz-appearance: textfield;
  }

  @media (min-width: 576px) {
    ::-webkit-scrollbar-track-piece {
      background-color: #f8f8f8;
    }

    /* 滚动条的宽度 */
    ::-webkit-scrollbar {
      width: .5rem;
      height: .5rem;
    }

    /* 滚动条的设置 */
    ::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.5);
      background-clip: padding-box;
      min-height: 1rem;
      border-radius: 0.5rem;
    }
  }

  .avatar-uploader .el-upload-dragger {
    width: 178px;
  }

  table a {
    color: inherit;
    text-decoration: none;
  }

  .el-input {
    max-width: 22.625rem;
  }

  body {
    padding: 0;
    margin: 0;
    background-color: #efeff4;
  }

  main {
    margin: auto;
    overflow-x: hidden;
    width: 100%;
  }

  .el-menu {
    border-right: 0;
  }

  header i {
    font-size: 1.75rem;
  }

  article {
    box-sizing: border-box;
    height: calc(100vh - 3.375rem);
    padding: .5rem;
  }

  button i::before {
    font-weight: bold;
  }

  .el-breadcrumb {
    padding: .5rem;
  }

  .card {
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid rgba(125, 125, 125, 0.25);
    box-shadow: 0 0.25rem 0.5rem 0 rgba(7, 17, 27, 0.1);
    margin: .5rem;
    padding: 1rem;
  }

  .page {
    display: flex;
    align-items: stretch;
  }

  .btn_full {
    width: 100%;
  }

  .el-table .cell {
    white-space: nowrap;
  }

  .ql-editor {
    height: 300px;
  }

  .diy_panel .el-radio {
    padding: 9px 15px 9px 15px;
  }

  .diy_panel .el-checkbox {
    padding: 9px 15px 9px 15px;
  }
</style>
